<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/public/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>客户信息</title>
<%@ include file="/WEB-INF/page/public/contentmeta.jsp"%>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="<%=basePath%>css/global.css" media="all" />
<link rel="stylesheet" href="<%=basePath%>plugins/font-awesome/css/font-awesome.min.css"/>
<link rel="stylesheet" href="<%=basePath%>css/system.css" media="all"/>
<link rel="stylesheet" href="<%=basePath%>css/tab.css" media="all" />
 <style type="text/css">
.layui-word-aux {  
    color: black ;  
}
 </style>
</head>
<body>

<fieldset class="layui-elem-field layui-field-title">
  <legend> 来电号码：  ${phone}</legend>
  <div class="layui-field-box">
  			
  	<c:if test="${info==null}">
  				<blockquote class="layui-elem-quote">无法查到相关信息，以下内容仅供参考</blockquote>
  				<iframe  src="https://www.baidu.com/s?wd=${phone}"  width="100%" height="600px"></iframe>
  	</c:if>		
   <c:if test="${info!=null}">
  			<form class="layui-form" action="">
		  <div class="layui-form-item">
		    <label class="layui-form-label">客户名称</label>
		    <div class="layui-form-mid layui-word-aux">${info.cname}</div>
		  </div>
		    <div class="layui-form-item">
		    <label class="layui-form-label">客户联系人</label>
		    <div class="layui-form-mid layui-word-aux">${uname}</div>
		  </div> 
		  <div class="layui-form-item">
		    <label class="layui-form-label">成熟等级</label>
		  <div class="layui-form-mid layui-word-aux"><dic:cf value="${info.state}" name="customer_state" type="1"/></div>
		  
		  </div>
		  <div class="layui-form-item">
		    <label class="layui-form-label">联系记录</label>
		    <div class="layui-input-block">
		        	 <table class="layui-table">
					  <colgroup>
					    <col width="110">
					    <col width="110"> 
					    <col>
					  </colgroup>
					<!--   <thead>
					    <tr>
					      <th>联系人</th>
					      <th>时间</th>
					      <th>备注</th>
					    </tr> 
					  </thead> --> 
					  <tbody> 
					  	   <c:forEach var="lxobj" items="${lxlist}" varStatus="lx">
			                		<tr>
			                			<td>${lxobj.uname}</td>
				                		<td>${lxobj.updatedate.substring(0,10)}</td>
				                		<td>${lxobj.remark}</td>
			                		</tr>
			                	</c:forEach> 
					  </tbody>
					</table>
		    </div>
		  </div> 
		</form>
  	</c:if>		 
  </div> 
</fieldset>
</body>
</html>